package com.zygh.dlqwservice.module.controller.pc;


import com.zygh.dlqwservice.common.anno.OperateLog;
import com.zygh.dlqwservice.common.pcdomain.ResponseDTO;
import com.zygh.dlqwservice.constant.SwaggerTagConst;
import com.zygh.dlqwservice.module.entity.Meun;
import com.zygh.dlqwservice.module.service.IMeunService;
import com.zygh.dlqwservice.module.service.impl.MeunServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.omg.PortableServer.LIFESPAN_POLICY_ID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lee
 * @since 2020-12-24
 */
@RestController
@RequestMapping("/meun")
@Api(tags = {SwaggerTagConst.Admin.MANAGER_MEUN})
@OperateLog
public class MeunController {
    @Autowired
    private IMeunService meunService;

    @PostMapping("findAllMeun")
    @ApiOperation(value = "查询所有菜单")
    public ResponseDTO<List<Meun>> findAllMeun() {

        return meunService.selectAll();
    }






}
